home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Frameworks / Extension Shell 1.5 / Sample Extensions (1.5) / MacCough ƒ / MC AddrsTable.h < prev    next >
Text File  |  1996-04-12  |  2KB  |  43 lines

  1. /*    NAME:
  2.         MC AddrsTable.h
  3.  
  4.     WRITTEN BY:
  5.         Dair Grant
  6.                  
  7.     DESCRIPTION:
  8.         Header file for MC AddrsTable.c, containing the definition of our
  9.         Address Table.
  10.  
  11.     ___________________________________________________________________________
  12. */
  13. #ifndef __MC_ADDRSTABLE__
  14. #define __MC_ADDRSTABLE__
  15. //=============================================================================
  16. //        Structures                                                                 
  17. //-----------------------------------------------------------------------------
  18. // The default address table has a "magic" value used to allow a Control
  19. // Panel (for example) to make sure that it gets back what it expects when
  20. // it asks Gestalt for the address table address.  Recommended values of
  21. // "magic" include any four letter character constant *other* than the
  22. // Gestal selector which returns the address table address.  The "version"
  23. // value can be used for a similar sanity checking purpose.  It allows
  24. // changes in the format of the address table to be detected by all
  25. // versions of a cdev/INIT pair.  If a mismatch between expected and actual
  26. // table versions occurs, appropriate action can be taken.  Following these
  27. // two fields  an array of ProcPtrs.
  28. //
  29. // To extend the address table, add fields after theTable.
  30. //-----------------------------------------------------------------------------
  31. #pragma options align=mac68k
  32. typedef struct {
  33.     long            magicNumber;
  34.     long            versionNumber;
  35.     ProcPtr            theTable[2];            // We use entry 1
  36.     Handle            theSound;                // The noise to play
  37. } MCAddressTable;
  38. #pragma options align=reset
  39.  
  40.  
  41.  
  42. #endif
  43.